package org.example.soft.service;

import com.github.yulichang.base.MPJBaseService;
import org.example.soft.Entity.AdminDTO;
import org.example.soft.Entity.UserDTO;
import org.example.soft.common.Result;
import org.example.soft.pojo.Admin;

import java.util.List;

public interface AdminDTOservice extends MPJBaseService<AdminDTO> {
    public Long Register(AdminDTO admin);
    public Long Register(UserDTO user);
    public List<UserDTO> SelectallUser();
    public UserDTO SelectById(Long id);
    public Result<Object> DeletedById(Long id);
    public Result<Object> UpdateById(UserDTO userDTO);

    public String Login(String adminName, String password);
}